﻿(* Copyright 2007 dnAnalytics Project.
 *
 * Contributors to this file:
 * Jurgen Van Gael
 *
 * This file is part of dnAnalytics.  dnAnalytics is licensed under the 
 * Microsoft Public License. See License.txt for a complete copy of the
 * license.
 *)
#light

namespace dnAnalytics

open dnAnalytics.LinearAlgebra

/// A module which implements some essential F# utility functions.
module FSharp =

    /// Construct a dense vector from a list of floating point numbers.
    /// <include file='../../../../FSharpExamples/MultiVariateNormal.xml' path='example'/> 
    let vector (lst: list<float>) = DenseVector.of_list lst :> Vector
    
    /// Construct a dense matrix from a list of floating point numbers.
    /// <include file='../../../../FSharpExamples/MultiVariateNormal.xml' path='example'/> 
    let matrix (lst: list<list<float>>) = DenseMatrix.of_list lst :> Matrix